#pragma once

#include "../QRSWidgetBase.h"
#include "ui_QCoverFaceOperation.h"
#include "Render/QIVtkSelectionPipeline.h"

QT_BEGIN_NAMESPACE
namespace Ui { class QCoverFaceOperationClass; };
QT_END_NAMESPACE

class MainWindow;
class ShapeOperation;

class QCoverFaceOperation : public QRSWidgetBase
{
	Q_OBJECT

public:
	QCoverFaceOperation(MainWindow* inMainWindow, ShapeOperation* inOperation = nullptr, QWidget* parent = nullptr);
	~QCoverFaceOperation();

protected:
	virtual void closeEvent(QCloseEvent* event) override;
	void OnSelectedActor(Handle(QIVtkSelectionPipeline) actor);

	void OnModify();
	void OnConfirm();

	void CoverInner();

private:
	Ui::QCoverFaceOperationClass* ui;

	QIVtkSelectionPipeline* m_selectedActor = nullptr;
};
